#!/bin/bash
et=$(curl "http://127.0.0.1/system/estimatetime")

sh="/usr/local/bin/aliyun cms PutCustomMetric --MetricList.1.GroupId 227060779 --MetricList.1.MetricName work_time --MetricList.1.Dimensions '{\"estimatetime\": \"Normal\"}' --MetricList.1.Type 0 --MetricList.1.Values '{\"value\": \"$et\"}'"
cd /data/api/docker
echo $sh > putmetricx.sh
chmod +x putmetricx.sh
./putmetricx.sh